//
//  SingerTableViewCell.m
//  MusicPlayer
//
//  Created by apple on 15/5/22.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SingerTableViewCell.h"
#define Width [UIScreen mainScreen].bounds.size.width
#define Height [UIScreen mainScreen].bounds.size.height
@implementation SingerTableViewCell

- (void)dealloc
{
    [_label release];
    [_imageview release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {


        

        self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 105/667.0*Height, 100/375.0*Width, 30/667.0*Height)];

        self.label.textAlignment = 1;
        [self.label setFont:[UIFont systemFontOfSize:17/375.0*Width]];
        self.label.textColor = [UIColor whiteColor];
        self.label.alpha = 0.7;
        
        self.imageview = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 100/375.0*Width , 100/667.0*Height)];
//        图片变成圆角
        self.imageview.layer.cornerRadius = 9;
        self.imageview.clipsToBounds = YES;

//        [self.imageview addSubview:_label];
        [self.contentView addSubview:_label];
        [self.contentView addSubview:_imageview];
        
        [_label release];
        [_imageview release];
     
    }
    return self;

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
